Project Manager Setup for VS Code
With the Project Manager extension, you can easily manage and switch between multiple micro-services. This setup will allow you to maintain a more organized development environment while working on multiple micro-services.
Micro-Services List
We will configure the following micro-services in the Project Manager:
activity-loganomalyauth-boauth-rsbuildingworkcalendarcommissioncompanydashboarddistributordocumentequipmenterrorestablishmentinitinterventionnotificationorganizationprofile-boprofile-rsreportresellersitetechnical-installationweb-socket
Step 1: Installing the Project Manager Extension
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or press
Ctrl+Shift+X. - In the search bar, type
Project Manager. - Select the extension named Project Manager by alefragnani.
- Click on the Install button to add it to VS Code.
Step 2: Configuring Project Manager
Once the extension is installed, follow these steps to configure your micro-services.
Adding Micro-Services to Project Manager
- Navigate to the folder where your micro-service is located (e.g.,
activity-log). - Open the Command Palette by pressing
Ctrl+Shift+P. - Type
Project Manager: Save Projectand select it. - You will be prompted to give the project a name. Enter the name of the micro-service (e.g.,
activity-log). - Repeat the steps above for each micro-service listed.
Using JSON Configuration (Alternative Method)
If you prefer to manually add all micro-services in one go, you can directly edit the projects.json file:
- Press
Ctrl+Shift+Pto open the Command Palette. - Type
Project Manager: Edit Projectsand select it. - Scroll down to the Project Manager section or add it manually:
[
{
"name": "activity-log",
"rootPath": "/path/to/activity-log"
},
{
"name": "anomaly",
"rootPath": "/path/to/anomaly"
},
{
"name": "auth-bo",
"rootPath": "/path/to/auth-bo"
},
{
"name": "auth-rs",
"rootPath": "/path/to/auth-rs"
},
{
"name": "buildingwork",
"rootPath": "/path/to/buildingwork"
},
{
"name": "calendar",
"rootPath": "/path/to/calendar"
},
{
"name": "commission",
"rootPath": "/path/to/commission"
},
{
"name": "company",
"rootPath": "/path/to/company"
},
{
"name": "dashboard",
"rootPath": "/path/to/dashboard"
},
{
"name": "distributor",
"rootPath": "/path/to/distributor"
},
{
"name": "document",
"rootPath": "/path/to/document"
},
{
"name": "equipment",
"rootPath": "/path/to/equipment"
},
{
"name": "error",
"rootPath": "/path/to/error"
},
{
"name": "establishment",
"rootPath": "/path/to/establishment"
},
{
"name": "init",
"rootPath": "/path/to/init"
},
{
"name": "intervention",
"rootPath": "/path/to/intervention"
},
{
"name": "notification",
"rootPath": "/path/to/notification"
},
{
"name": "organization",
"rootPath": "/path/to/organization"
},
{
"name": "profile-bo",
"rootPath": "/path/to/profile-bo"
},
{
"name": "profile-rs",
"rootPath": "/path/to/profile-rs"
},
{
"name": "report",
"rootPath": "/path/to/report"
},
{
"name": "reseller",
"rootPath": "/path/to/reseller"
},
{
"name": "site",
"rootPath": "/path/to/site"
},
{
"name": "technical-installation",
"rootPath": "/path/to/technical-installation"
},
{
"name": "web-socket",
"rootPath": "/path/to/web-socket"
}
]
- Replace the /path/to/ with the actual path to your micro-services.
- Save the file.
Step 3: Switching Between Micro-Services
- Open the Command Palette with Ctrl+Shift+P.
- Type Project Manager: List Projects and select it.
- You will see a list of all your configured micro-services.
- Select any micro-service to open it in the current or a new window.